package top.truehaku.generator.code.domain.model.code;

import lombok.Getter;
import lombok.Setter;
import top.truehaku.generator.common.util.StringUtils;

@Getter@Setter
public class CodeTemplate {
    private String templatePath;

    public CodeTemplate(String templatePath) {
        if (StringUtils.isBlank(templatePath)){
            throw new IllegalArgumentException("模板路径不能为空");
        }
        this.templatePath = templatePath;
    }
}
